package birdsong.comm;

import java.util.ArrayList;
import java.util.Calendar;

import birdsong.comm.ServerSideMessage.Type;
import birdsong.dummy.BirdsongServerDummy;
import birdsong.dummy.ServerCommDummy;
import birdsong.server.BirdsongServer;
import junit.framework.Test;
import junit.framework.TestSuite;

public class TestsSuites {

	public static Test suite() {
		TestSuite suite = new TestSuite(TestsSuites.class.getName());
		//$JUnit-BEGIN$
		ArrayList<ServerSideMessage> listaMensagem = new ArrayList<ServerSideMessage>();
		String [] censura={"ola","adeus"};

		ServerCommDummy serverComm = new ServerCommDummy();
		BirdsongServer  server     = new BirdsongServerDummy();
		
		server.start(serverComm);
		serverComm.start();
		
		MessageFilter m = new MessageFilter(serverComm, censura);

		//2
		for(int i=1; i<= 4; i++){
			m.getNextMessage();	
		}
		
		//3
		for(int i=1; i<= 10; i++){
			m.getNextMessage();	
		}

		//4
		for(int i=1; i<= 3; i++){
			m.getNextMessage();	
		}

		//
		for(int i=1; i<= 5; i++){
			m.getNextMessage();	
		}

		//$JUnit-END$
		return suite;
	}

}
